package com.pinyoumei.app.network;


import com.pinyoumei.app.bean.CollegeMarketResponse;
import com.pinyoumei.app.bean.UserAddressDeleteResponse;
import com.pinyoumei.app.bean.UserAddressListResponse;
import com.pinyoumei.app.bean.UserAddressSubmitResponse;

import java.util.Map;

import retrofit2.http.POST;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * 请求服务接口类
 */
public interface NetworkService{


    //收货地址保存提交(新增收货地址)
    @POST("app/userCenter/userAddress/submit")
    Observable<UserAddressSubmitResponse> userAddressSubmit(@QueryMap Map<String, Object> map);

    //收货地址管理列表
    @POST("app/userCenter/userAddress/list")
    Observable<UserAddressListResponse> userAddressList(@QueryMap Map<String, Object> map);

    //用户收货地址删除
    @POST("app/userCenter/userAddress/delete")
    Observable<UserAddressDeleteResponse> userAddressDelete(@QueryMap Map<String, Object> map);

    //营销素材
    @POST("app/invite/market")
    Observable<CollegeMarketResponse> collegeMarket(@QueryMap Map<String, Object> map);
}

